package net.mapper;

import net.pojo.Artile;
import net.pojo.Comments;
import net.pojo.Dicuss;
import net.pojo.Links;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AdminMapper {
    List<Artile> findAll();

    List<Artile> search(@Param(value = "ptags") String ptags,@Param(value = "ptitle") String ptitle);

    int deleteById(Integer pid);

    Artile findById(@Param(value = "pid") Integer pid);

    int updateArtile(Artile artile);

    int addArtile(Artile artile);

    List<Dicuss> findAllDicuss();

    int deleteDicuss(Integer did);

    List<Comments> findAllComment();

    int deleteComments(Integer cid);

    List<Links> findLinks();

    int deleteLinks(Integer lid);

    int updateLinks(Links links);

    Links findLinkById(Integer lid);

    List<Artile> searchNum();
}
